import pandas as pd
import numpy as np
import string

t = pd.Series(np.arange(10), index=list(string.ascii_uppercase[:10]))
print("1=",t)
print(type(t))

print("2=", t[2:10:2])
print("3=", t[1])
print("4=", t[[2,3,6]])
print("5=", t[t>4])
print("6=", t["F"])
print("7=", t[["A", "F", "g"]])
print("8=", t.index)
print("9=", t.values)

a = {string.ascii_uppercase[i]: i for i in range(10)}
print("a=", a)
t_1 = pd.Series(a)
print("t_1=", t_1)
t_2 = pd.Series(a, index=list(string.ascii_uppercase[5:15]))
print("t_2=", t_2)


